home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / CMComponent.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  4.3 KB  |  155 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMComponent.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT CMComponent;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CMCOMPONENT__}
  27. {$SETC __CMCOMPONENT__ := 1}
  28.  
  29. {$I+}
  30. {$SETC CMComponentIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$IFC UNDEFINED __QUICKDRAW__}
  40. {$I Quickdraw.p}
  41. {$ENDC}
  42. {    MixedMode.p                                                    }
  43. {    QuickdrawText.p                                                }
  44.  
  45. {$IFC UNDEFINED __COMPONENTS__}
  46. {$I Components.p}
  47. {$ENDC}
  48.  
  49. {$IFC UNDEFINED __WINDOWS__}
  50. {$I Windows.p}
  51. {$ENDC}
  52. {    Memory.p                                                    }
  53. {    Events.p                                                    }
  54. {        OSUtils.p                                                }
  55. {    Controls.p                                                    }
  56. {        Menus.p                                                    }
  57.  
  58. {$IFC UNDEFINED __CMAPPLICATION__}
  59. {$I CMApplication.p}
  60. {$ENDC}
  61. {    Printing.p                                                    }
  62. {        Errors.p                                                }
  63. {        Dialogs.p                                                }
  64. {            TextEdit.p                                            }
  65.  
  66. {$PUSH}
  67. {$ALIGN MAC68K}
  68. {$LibExport+}
  69.  
  70. CONST
  71.     CMInterfaceVersion            = 0;
  72.  
  73. { CMM Component function selectors }
  74.     kCMInit                        = 0;
  75.     kCMMatchColors                = 1;
  76.     kCMGamutTest                = 2;
  77.     kCMMatchPixMap                = 3;
  78.     kCMCheckPixMap                = 4;
  79.     kCMConcatenateProfiles        = 5;
  80.  
  81. { Profile Responder Components }
  82.     ProfileResponderInterfaceRev = 0;
  83.  
  84. { ProfileResponder Component function selectors }
  85.     kCMGetProfile                = 0;
  86.     kCMSetProfile                = 1;
  87.     kCMSetProfileDescription    = 2;
  88.     kCMGetIndexedProfile        = 3;
  89.     kCMDeleteDeviceProfile        = 4;
  90.     kProfileResponderMaxSelector = kCMDeleteDeviceProfile;
  91.  
  92.     
  93. TYPE
  94.     ProfileResponder = ComponentInstance;
  95.  
  96. { Required CMM Component routines }
  97.  
  98. FUNCTION CMInit(CMSession: ComponentInstance; srcProfile: CMProfileHandle; dstProfile: CMProfileHandle): CMError;
  99.     {$IFC NOT GENERATINGCFM}
  100.     INLINE $2F3C, $0008, 0, $7000, $A82A;
  101.     {$ENDC}
  102. FUNCTION CMMatchColors(CMSession: ComponentInstance; myColors: CMColorList; count: LONGINT): CMError;
  103.     {$IFC NOT GENERATINGCFM}
  104.     INLINE $2F3C, $0008, 1, $7000, $A82A;
  105.     {$ENDC}
  106. FUNCTION CMCheckColors(CMSession: ComponentInstance; myColors: CMColorList; count: LONGINT; result: CMGamutResult): CMError;
  107.     {$IFC NOT GENERATINGCFM}
  108.     INLINE $2F3C, $000C, 2, $7000, $A82A;
  109.     {$ENDC}
  110. { Optional CMM Component routines }
  111. FUNCTION CMMatchPixMap(CMSession: ComponentInstance; VAR myPixMap: PixMap; progressProc: PixMapCallBackUPP; refCon: LONGINT): CMError;
  112.     {$IFC NOT GENERATINGCFM}
  113.     INLINE $2F3C, $000c, 3, $7000, $A82A;
  114.     {$ENDC}
  115. FUNCTION CMCheckPixMap(CMSession: ComponentInstance; VAR myPixMap: PixMap; progressProc: PixMapCallBackUPP; VAR myBitMap: BitMap; refCon: LONGINT): CMError;
  116.     {$IFC NOT GENERATINGCFM}
  117.     INLINE $2F3C, $0010, 4, $7000, $A82A;
  118.     {$ENDC}
  119. FUNCTION CMConcatenateProfiles(CMSession: ComponentInstance; thru: CMProfileHandle; dst: CMProfileHandle; VAR newDst: CMProfileHandle): CMError;
  120.     {$IFC NOT GENERATINGCFM}
  121.     INLINE $2F3C, $000C, 5, $7000, $A82A;
  122.     {$ENDC}
  123. { ProfileResponder Component routines }
  124. FUNCTION CMGetProfile(myProfileResponder: ProfileResponder; aProfile: CMProfileHandle; VAR returnedProfile: CMProfileHandle): CMError;
  125.     {$IFC NOT GENERATINGCFM}
  126.     INLINE $2F3C, $0008, 0, $7000, $A82A;
  127.     {$ENDC}
  128. FUNCTION CMSetProfile(myProfileResponder: ProfileResponder; newProfile: CMProfileHandle): CMError;
  129.     {$IFC NOT GENERATINGCFM}
  130.     INLINE $2F3C, $0004, 1, $7000, $A82A;
  131.     {$ENDC}
  132. FUNCTION CMSetProfileDescription(myProfileResponder: ProfileResponder; DeviceData: LONGINT; hProfile: CMProfileHandle): CMError;
  133.     {$IFC NOT GENERATINGCFM}
  134.     INLINE $2F3C, $0008, 2, $7000, $A82A;
  135.     {$ENDC}
  136. FUNCTION CMGetIndexedProfile(myProfileResponder: ProfileResponder; search: CMProfileSearchRecordHandle; VAR returnProfile: CMProfileHandle; VAR index: LONGINT): CMError;
  137.     {$IFC NOT GENERATINGCFM}
  138.     INLINE $2F3C, $000C, 3, $7000, $A82A;
  139.     {$ENDC}
  140. FUNCTION CMDeleteDeviceProfile(myProfileResponder: ProfileResponder; deleteMe: CMProfileHandle): CMError;
  141.     {$IFC NOT GENERATINGCFM}
  142.     INLINE $2F3C, $0004, 4, $7000, $A82A;
  143.     {$ENDC}
  144.  
  145. {$ALIGN RESET}
  146. {$POP}
  147.  
  148. {$SETC UsingIncludes := CMComponentIncludes}
  149.  
  150. {$ENDC} {__CMCOMPONENT__}
  151.  
  152. {$IFC NOT UsingIncludes}
  153.  END.
  154. {$ENDC}
  155.